import StartPage from './StartPage'
import EndPage from './EndPage'
import GamePage from './GamePage'

export const PAGE = {
  start: 'StartGame',
  game: 'GamePage',
  end: 'EndPage'
}

const pageMap = {
  [PAGE.start]: StartPage,
  [PAGE.game]: GamePage,
  [PAGE.end]: EndPage,
}

export const getPageComponent = (pageName) => {
  return pageMap[pageName]
}